home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-ARM / PROCESSO.{1O < prev    next >
Text File  |  1999-09-17  |  1KB  |  64 lines

  1. /*
  2.  * include/asm-arm/processor.h
  3.  *
  4.  * Copyright (C) 1995 Russell King
  5.  */
  6.  
  7. #ifndef __ASM_ARM_PROCESSOR_H
  8. #define __ASM_ARM_PROCESSOR_H
  9.  
  10. struct fp_hard_struct {
  11.     unsigned int save[140/4];        /* as yet undefined */
  12. };
  13.  
  14. struct fp_soft_struct {
  15.     unsigned int save[140/4];        /* undefined information */
  16. };
  17.  
  18. union fp_state {
  19.     struct fp_hard_struct    hard;
  20.     struct fp_soft_struct    soft;
  21. };
  22.  
  23. typedef unsigned long mm_segment_t;        /* domain register    */
  24.  
  25. #define NR_DEBUGS    5
  26.  
  27. #define DECLARE_THREAD_STRUCT                            \
  28. struct thread_struct {                                \
  29.     unsigned long    address;        /* Address of fault    */    \
  30.     unsigned long    trap_no;        /* Trap number        */    \
  31.     unsigned long    error_code;        /* Error code of trap    */    \
  32.     union fp_state    fpstate;        /* FPE save state    */    \
  33.     unsigned long    debug[NR_DEBUGS];    /* Debug/ptrace        */    \
  34.     EXTRA_THREAD_STRUCT                            \
  35. }
  36.  
  37. #include <asm/arch/processor.h>
  38. #include <asm/proc/processor.h>
  39.  
  40. #define INIT_TSS  {            \
  41.     0,                \
  42.     0,                \
  43.     0,                \
  44.     { { { 0, }, }, },        \
  45.     { 0, },                \
  46.     EXTRA_THREAD_STRUCT_INIT    \
  47. }
  48.  
  49. /* Forward declaration, a strange C thing */
  50. struct mm_struct;
  51.  
  52. /* Free all resources held by a thread. */
  53. extern void release_thread(struct task_struct *);
  54.  
  55. /* Copy and release all segment info associated with a VM */
  56. #define copy_segments(nr, tsk, mm)    do { } while (0)
  57. #define release_segments(mm)        do { } while (0)
  58. #define forget_segments()        do { } while (0)
  59.  
  60. #define init_task    (init_task_union.task)
  61. #define init_stack    (init_task_union.stack)
  62.  
  63. #endif /* __ASM_ARM_PROCESSOR_H */
  64.